$('#selectAll').click(function () {
    var obj = document.getElementsByName('ids[]');
    var checkedif=$(this).prop("checked");
    if (checkedif == true) {
        var boolean = false;
        for (var i = 0; i < obj.length; i++) {
            var e = obj[i];
            if (e.disabled != true){
                boolean=true;
                break;
            }
        }
        if (boolean===true){
            $('#settlement').show();
        }else {
            btgo.msg('这页面没有需要处理的数据');
            return false;
        }
    } else {
        $('#settlement').hide();
    }
    for (var i = 0; i < obj.length; i++) {
        var e = obj[i];
        if (e.disabled != true){
            e.checked = checkedif;
        }
    }
});
function jqselect(ids) {
    var idsV=$('#ids'+ids).prop("checked")
    if (idsV === true){
        $('#settlement').show();
    }else {
        var obj = document.getElementsByName('ids[]');
        var boolean = false;
        for (var i = 0; i < obj.length; i++) {
            if (obj[i].checked){
                boolean=true;
                break;
            }
        }
        if (boolean === false){
            $('#settlement').hide();
        }
    }
}